package com.inspur.demo.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="xxxx",url="http://localhost:8761")
public interface FeignTestClient02 {

    //使用Feign的默认配置,所以此处可以使用SpringMVC的注解
    //http://localhost:8761/eureka/apps/{serviceName} 可以查看注册到Eureka上的服务信息
    @RequestMapping("/eureka/apps/{serviceName}")
    public String getServiceInfo(@PathVariable("serviceName") String serviceName);

}
